//=============================================================================

#ifndef ALOG_H
  #define ALOG_H

//=============================================================================

#include "doCommon.h"

//=============================================================================

#define LOG aLog::alGetInstance()

//=============================================================================

class aLog
{
  private:
    aLog();
    ~aLog();

  public:
      inline static aLog& alGetInstance() {static aLog loger; return loger;}

      void alWrite(const aString& str, bool printTime = 1);

  public:
    bool logon;
    aString logPath;

  private:
    SYSTEMTIME t;
};

//=============================================================================

#endif

//=============================================================================
